package com.TingBer.view.buttons;

import javax.imageio.ImageIO;
import javax.swing.*;
import java.io.File;

public class SettingButton extends BaseButton {
    public SettingButton(){
        super("设置");
        try {
            ImageIcon icon = new ImageIcon(ImageIO.read(new File("classpath://png/setting.png")));                                             //定义图片对象
            this.setIcon(icon);
            this.setBounds(196, 40, 120, 120);       //定义按钮显示位置
        }catch (Exception e){
            e.getStackTrace();
//            throw new RuntimeException("获取图片失败！");
        }
    }
}
